package com.lvtu.monitor.schedule;

import java.util.Comparator;
import java.util.List;

import org.apache.log4j.Logger;

import com.alibaba.fastjson.JSON;
import com.taobao.pamirs.schedule.IScheduleTaskDealSingle;
import com.taobao.pamirs.schedule.TaskItemDefine;


/** 
 * @Title: TestSchedule.java 
 * @Package com.lvtu.monitor.schedule 
 * @Description: TODO 
 * @author dengcheng 
 * @date 2015-6-10 下午1:26:47 
 * @version V1.0.0 
 */
public class DailyErrorSchedule implements  IScheduleTaskDealSingle<String>{
	Logger log = Logger.getLogger(DailyErrorSchedule.class);

	@Override
	public List<String> selectTasks(String taskParameter, String ownSign,
			int taskItemNum, List<TaskItemDefine> taskItemList,
			int eachFetchDataNum) throws Exception {
		Thread current = Thread.currentThread();  
		log.info(current.getPriority());  
		log.info(current.getName());  
		log.info(current.activeCount());  
		log.info(current.getId());  
		log.info(current.getThreadGroup());  
		log.info(current.getStackTrace());  
		log.info(current.hashCode());  
		log.info(current.toString());  
		log.info(JSON.toJSONString(taskItemList));
//		log.info("...taskParameter="+taskParameter);
//		log.info("...ownSign="+ownSign);
//		log.info("...taskItemNum="+taskItemNum);
//		log.info("...eachFetchDataNum="+eachFetchDataNum);
		System.out.println("============================");
		return null;
	}

	@Override
	public Comparator<String> getComparator() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public boolean execute(String task, String ownSign) throws Exception {
		// TODO Auto-generated method stub
		
		return true;
	}
	


	
}
